package com.b511.swpu.cementbackend.controller;

import com.b511.swpu.cementbackend.service.DataValidateService;
import com.b511.swpu.cementbackend.util.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@Api(value = "数据校验", tags = {"数据校验"})
@RestController
@RequestMapping("/datavalidate")
public class DataValidateController {

    @Autowired
    private final DataValidateService dataValidateService;

    public DataValidateController(DataValidateService dataValidateService) {
        this.dataValidateService = dataValidateService;
    }

    @GetMapping("/error")
    public R getErrorBorehole(@RequestParam(value = "wellName",required = false) String wellName, @RequestParam(value = "caseSize",required = false)String caseSize) {
        return dataValidateService.getValidateRecord1(wellName,caseSize);
    }

}